﻿<%@ Page Language="C#"  AutoEventWireup="true" CodeFile="AdminUpdatePWD.aspx.cs" Inherits="AdminUpdatePWD" Title="Untitled Page" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title> 管理员修改密码</title>
       <link href="../Css/ys.css" rel="stylesheet" type="text/css" />
    <script language="javascript" src="../My97DatePicker/WdatePicker.js"></script>
    <script src="../Js/AuthCode.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
        function clearData() {
            document.getElementById("txtoldpwd").value = "";
            document.getElementById("txtpwd").value = "";
            document.getElementById("txtagain").value = "";
            document.getElementById("txtAuth").value = "";
        
        }
    </script>
</head>
<body>
  <form id="form1" runat="server">
    <asp:HiddenField ID="hidId" runat="server" />
    <div class="zt mainCenter">
        <div class="contentBody">
            <div class="title">
               管理员管理-->修改密码</div>
            <br class="sp3px" />
            <table cellpadding="0" cellspacing="0" class="ta1" width="680">
<tr>
            <td class="ta2 tag" >
                原始密码：</td>
            <td class="ta2" >
                <asp:TextBox ID="txtoldpwd" runat="server" TextMode="Password"  ValidationGroup="register" CssClass="inp1"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" Text="*"  ControlToValidate="txtoldpwd" 
                ErrorMessage="原始密码不能为空" ValidationGroup="register"></asp:RequiredFieldValidator>
                </td>
        </tr>
        <tr>
            <td class="ta2 tag" >
                输入新密码：</td>
            <td class="ta2">
                <asp:TextBox ID="txtpwd" runat="server" TextMode="Password"  ValidationGroup="register" CssClass="inp1"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" Text="*"  ControlToValidate="txtpwd" 
                ErrorMessage="新密码不能为空" ValidationGroup="register"></asp:RequiredFieldValidator>
                </td>
        </tr>
         <tr>
            <td class="ta2 tag" >
                再次输入密码：</td>
            <td class="ta2" >
                <asp:TextBox ID="txtagain" runat="server" TextMode="Password" ValidationGroup="register" CssClass="inp1"></asp:TextBox>
                <asp:CompareValidator ID="comValidator" runat="server" ControlToCompare="txtpwd" ControlToValidate="txtagain"
                 ErrorMessage="两次密码不一致" Text ="*" ValidationGroup="register"></asp:CompareValidator>
                  <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" Text="*"  ControlToValidate="txtagain" 
                ErrorMessage="原始密码不能为空" ValidationGroup="register"></asp:RequiredFieldValidator>
                </td>
        </tr>
       <span id="AuthSpan" style="color:Red;font-size:small" ></span>
<tr><td  colspan="2" class="style1">
    <asp:Button ID="btupdate" runat="server" Text="修改" onclick="btupdate_Click" ValidationGroup="register"  CssClass="button"/>
    &nbsp;<input id="btnReset" type="button" value="重置"  onclick="clearData();" class="button" />
    &nbsp;<input type="button" value="返回" onclick="window.history.go(-1)" class="button"  id="back" runat="server" >
     </td></tr>
     <tr><td colspan="2">
         <asp:Label ID="Label1" runat="server" Text=""></asp:Label></td></tr>
</table>
</div>
</div>
</form>
</body>
</html>

